<?php
/**
 * Created by PhpStorm.
 * User: zzw
 * Date: 17-2-27
 * Time: 下午4:55
 */
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class account_info_model extends MY_Model
{
    protected $table = 'account_info';
    public function set($id,$arr)
    {
        $this->db->set($arr)
            -> where(array('id'=>$id))
            -> update($this->table);
        return $this->db->affected_rows();
    }
}